home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / linux.faq.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-04-12  |  43.0 KB

  1. Subject: Linux Frequently Asked Questions with Answers (FAQ: 1/2)
  2. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  3. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  4. Date: Sun, 10 Apr 1994 12:05:19 GMT
  5.  
  6. Archive-Name: linux/faq/part1
  7. Last-Modified: 10 Apr 1994
  8.  
  9. This is the list of Frequently Asked Questions about Linux, the free Unix
  10. for 386/486 [see Q1.1 `What is Linux ?' for more details].  It should be
  11. read in conjunction with the HOWTO documents, which are available in
  12.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  13.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  14.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  15. and mirror sites thereof -- see Q2.4 `Where can I get Linux material by
  16. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  17. for a list of the HOWTOs and more information.  The INFO-SHEET and
  18. META-FAQ, found in the same place, also list other sources of Linux
  19. information.
  20.  
  21. The Linux Documentation Project documentation is available on
  22. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  23. preparation) are invaluable to the newcomer or for use as a reference
  24. work.
  25.  
  26. Please check out these documents and this FAQ, especially Q9.1 `You still
  27. haven't answered my question !', before posting your question to the
  28. newsgroup comp.os.linux.help.
  29.  
  30. You can skip to a particular question by searching for `Question n.n'.
  31. See Q10.2 `Formats in which this FAQ is available' for details of where to
  32. get the PostScript and Emacs Info versions of this document.
  33.  
  34. Note that this posting has been split into two parts because of its size.
  35.  
  36. A new version of this document appears approximately monthly.  If this
  37. copy is more than a month old it may be out of date.
  38.  
  39. ===============================================================================
  40.  
  41. Index
  42.  
  43.  Section 1.  Introduction and General Information
  44.  Q1.1        What is Linux ?
  45.  Q1.2        What software does it support ?
  46.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  47.  Q1.4        How much hard disk space does Linux need ?
  48.  Q1.5        Is Linux PD ?  Copyrighted ?
  49.  Q1.6        How should I pronounce Linux ?
  50.  
  51.  Section 2.  Network sources and resources
  52.  Q2.1        Where can I get the HOWTOs and other documentation ?
  53.  Q2.2        What newsgroups are there for Linux ?
  54.  Q2.3        How do I install Linux ?
  55.  Q2.4        Where can I get Linux material by FTP ?
  56.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  57.  Q2.6        I don't have Usenet access.  Where do I get information ?
  58.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  59.  Q2.8        Are the newsgroups archived anywhere ?
  60.  
  61.  Section 3.  Compatibility with other operating systems
  62.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  63.  Q3.2        How do I access files on my DOS partition or floppy ?
  64.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  65.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  66.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  67.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  68.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  69.  Q3.8        How can I share a swap partition between Linux and OS/2 or MS Wind
  70.  
  71.  Section 4.  Linux's handling of filesystems, disks and drives
  72.  Q4.1        How can I undelete files ?
  73.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  74.  Q4.3        How do I format and create a filesystem on a floppy ?
  75.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  76.  Q4.5        My swap area isn't working.
  77.  Q4.6        How can I have more than 16Mb of swap ?
  78.  Q4.7        How do I remove LILO so my system boots DOS again ?
  79.  Q4.8        Why can't I use fdformat except as root ?
  80.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  81.  
  82.  Section 5.  Porting, compiling and obtaining programs
  83.  Q5.1        What is ld.so and where do I get it ?
  84.  Q5.2        During linking I get Undefined symbol _mcount
  85.  Q5.3        Has anyone ported / compiled / written XXX for Linux ?
  86.  Q5.4        How do I port XXX to Linux ?
  87.  Q5.5        Can I use code or a compiler compiled for a 486 on my 386 ?
  88.  Q5.6        GCC sometimes uses huge amounts of virtual memory and thrashes
  89.  Q5.7        What does gcc -O6 do ?
  90.  Q5.8        Where are <linux/*.h> and <asm/*.h> ?
  91.  Q5.9        I get errors when I try to compile the kernel.
  92.  Q5.10       My ext2fs partitions are checked each time I reboot.
  93.  Q5.11       I have a huge /proc/kcore !  Can I delete it ?
  94.  
  95.  Section 6.  Miscellaneous questions and problems
  96.  Q6.1        How do I make my executables smaller ?
  97.  Q6.2        How many people use Linux ?
  98.  Q6.3        How can I get scrollback on text VC's ?
  99.  Q6.4        Setuid scripts don't seem to work.
  100.  Q6.5        Free memory as reported by free keeps shrinking.
  101.  Q6.6        What is a BogoMip ?
  102.  Q6.7        How do I set the timezone ?
  103.  Q6.8        What version of Linux and what machine name am I using ?
  104.  Q6.9        When I add more memory it slows to a crawl.
  105.  Q6.10       Some programs (e.g. xdm) won't let me log in.
  106.  Q6.11       Some programs let me log in with no password.
  107.  Q6.12       My machine runs very slowly when I run GCC / X / ...
  108.  Q6.13       I can only log in as root.
  109.  Q6.14       How can I produce core files ?
  110.  Q6.15       How do I stop producing core files ?
  111.  Q6.16       My keyboard goes all funny after I switch VC's.
  112.  Q6.17       My screen is all full of weird characters instead of letters.
  113.  Q6.18       What is a .gz file ? And a .tgz ? And ... ?
  114.  Q6.19       I have screwed up my system and can't log in to fix it.
  115.  Q6.20       How do I upgrade/recompile my kernel ?
  116.  Q6.21       Can I have more than 3 serial ports by sharing interrupts ?
  117.  Q6.22       Emacs just dumps core.
  118.  Q6.23       How do I make a bootable floppy ?
  119.  Q6.24       How do I remap my keyboard to UK, French, etc. ?
  120.  Q6.25       I've discovered a huge security hole in rm !
  121.  Q6.26       lpr and lpd aren't working.
  122.  Q6.27       How do I make a shared library ?
  123.  Q6.28       What does VFS stand for ?
  124.  
  125.  Section 7.  Frequently Encountered Error messages
  126.  Q7.1        fdisk says Partition X has different phsyical/logical ...
  127.  Q7.2        fdisk: Partition 1 does not start on cylinder boundary
  128.  Q7.3        lp1 on fire
  129.  Q7.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  130.  Q7.5        ld: unrecognized option '-m486'
  131.  Q7.6        GCC says Internal compiler error
  132.  Q7.7        make says Error 139
  133.  Q7.8        df says Cannot read table of mounted filesystems
  134.  Q7.9        shell-init: permission denied when I log in.
  135.  Q7.10       No utmp entry.  You must exec ... when I log in.
  136.  Q7.11       EXT2-fs: warning: mounting unchecked filesystem
  137.  Q7.12       EXT2-fs warning: maximal count reached
  138.  Q7.13       EXT2-fs warning: checktime reached
  139.  Q7.14       fdisk says cannot use nnn sectors of this partition
  140.  Q7.15       fdisk says partition n has an odd number of sectors
  141.  Q7.16       mtools says cannot initialise drive XYZ
  142.  Q7.17       My AHA1542C doesn't work with Linux.
  143.  
  144.  Section 8.  The X Window System
  145.  Q8.1        Does Linux support X Windows ?
  146.  Q8.2        Where can I get an Xconfig for my video card and monitor ?
  147.  Q8.3        xterm logins show up strangely in who, finger
  148.  Q8.4        I can't get X Windows to work right.
  149.  
  150.  Section 9.  How to get further assistance
  151.  Q9.1        You still haven't answered my question !
  152.  Q9.2        What to put in a posting to comp.os.linux.help
  153.  
  154.  Section 10. Administrative information and acknowledgements
  155.  Q10.1       Feedback is invited
  156.  Q10.2       Formats in which this FAQ is available
  157.  Q10.3       Authorship and acknowledgements
  158.  Q10.4       Disclaimer and Copyright
  159.  
  160. ===============================================================================
  161.  
  162. Section 1.  Introduction and General Information
  163.  
  164.  Q1.1        What is Linux ?
  165.  Q1.2        What software does it support ?
  166.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  167.  Q1.4        How much hard disk space does Linux need ?
  168.  Q1.5        Is Linux PD ?  Copyrighted ?
  169.  Q1.6        How should I pronounce Linux ?
  170.  
  171. -------------------------------------------------------------------------------
  172.  
  173. Question 1.1.  What is Linux ?
  174.  
  175. Linux is a Unix clone for 386/486-based PCs written from scratch by Linus
  176. Torvalds with assistance from a loosely-knit team of hackers across the
  177. Net.  It aims towards POSIX compliance.
  178.  
  179. It has all the features you would expect in a modern fully-fledged Unix,
  180. including true multitasking, virtual memory, shared libraries, demand
  181. loading, shared copy-on-write executables, proper memory management and
  182. TCP/IP networking.
  183.  
  184. It uses the hardware features of the 386 processor family (TSS segments et
  185. al) to implement these features.
  186.  
  187. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  188. documentation ?'] for more details.
  189.  
  190. It is distributed under the GNU General Public License - see Q1.5 `Is
  191. Linux PD ?  Copyrighted ?' for more details.
  192.  
  193. -------------------------------------------------------------------------------
  194.  
  195. Question 1.2.  What software does it support ?
  196.  
  197. Linux has GCC, Emacs, X-Windows, all the standard Unix utilities, TCP/IP
  198. (including SLIP --- PPP support is being developed) and all the hundreds
  199. of programs that people have compiled or ported for it.
  200.  
  201. There is a DOS emulator [Q3.1 `Can Linux coexist with DOS ?  OS/2 ?
  202. 386BSD ?  Minix ?'] and work is progressing on a facilities to allow SVR4
  203. ELF, SVR3.2 COFF and Microsoft Windows binaries [Q3.6 `Can I run Microsoft
  204. Windows programs under Linux ?'] to be run under Linux and X Windows.
  205.  
  206. For more information see the INFO-SHEET, which is one of the the HOWTOs
  207. --- see above, or Q2.1 `Where can I get the HOWTOs and other documentation
  208. ?'.  See also Q5.4 `How do I port XXX to Linux ?'.
  209.  
  210. Some companies have commercial software available, including Motif.  They
  211. announce their availability in comp.os.linux.announce --- try searching
  212. the archives [Q2.8 `Are the newsgroups archived anywhere ?'].
  213.  
  214. -------------------------------------------------------------------------------
  215.  
  216. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  217.  
  218. You need a 386 or 486, with at least 2Mb of RAM and a single floppy, to
  219. try it out.  To do anything useful more RAM and a hard disk are required.
  220. Reportedly Linux also works on a Pentium.
  221.  
  222. Linux doesn't currently work on machines using MCA (IBM's proprietary
  223. bus), because of lack of available documentation.  You may be able to get
  224. it to work if your hard disk is on certain kinds of controller (some SCSI
  225. controllers work, I understand), but you're on your own.
  226.  
  227. It should work with VESA local bus machines, provided that the local bus
  228. cards really are equivalent to the equivalent ISA ones.  Linux is reported
  229. to run on 386/486-based laptops, with X on most of them.
  230.  
  231. For details of exactly which PC's, video cards, disk controllers, etc.
  232. work see the INFO-SHEET and the Hardware Compatibility HOWTO [Q2.1 `Where
  233. can I get the HOWTOs and other documentation ?'].
  234.  
  235. Linux will never run on a 286, because it uses task-switching and memory
  236. management facilities only found on 386/486 processors.  There are
  237. currently no plans to port it to the PowerPC architecture.
  238.  
  239. A project is underway to port Linux to suitable 68000-series based systems
  240. such as Amigas, but this is still at an early stage of development.  Don't
  241. post asking about it unless you think you can contribute to it, and don't
  242. hold your breath.
  243.  
  244. -------------------------------------------------------------------------------
  245.  
  246. Question 1.4.  How much hard disk space does Linux need ?
  247.  
  248. 10Mb for a very minimal installation, suitable for trying it out and not
  249. much else.
  250.  
  251. You can squeeze a more complete installation including X Windows into
  252. 80Mb.  The SLS 1.03 distribution (which I would recommend you stay well
  253. clear of - it has a number of serious and annoying bugs) takes around
  254. 100Mb.
  255.  
  256. -------------------------------------------------------------------------------
  257.  
  258. Question 1.5.  Is Linux PD ?  Copyrighted ?
  259.  
  260. The Linux kernel copyright belongs to Linus Torvalds.  He has placed it
  261. under the GNU General Public Licence, which basically means that you may
  262. freely copy, change and distribute it, but that you may not impose any
  263. restrictions on further distribution, and that you must make the source
  264. code available.
  265.  
  266. Full details are in the file COPYING in the Linux kernel sources (probably
  267. in /usr/src/linux on your system).
  268.  
  269. The copyright of the utilities and programs which come with the
  270. installations vary; much of the code is from the GNU Project at the Free
  271. Software Foundation, and is also under the GPL.
  272.  
  273. Note that discussion about the merits or otherwise of the GPL should be
  274. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  275.  
  276. -------------------------------------------------------------------------------
  277.  
  278. Question 1.6.  How should I pronounce Linux ?
  279.  
  280. This is a matter of religious debate, of course !
  281.  
  282. If you want to hear the Linus himself say how he pronounces it download
  283. english.au or swedish.au from ftp.funet.fi (in
  284. /pub/OS/Linux/PEOPLE/Linux/SillySounds).  If you have a soundcard or the
  285. PC-speaker audio driver you can hear them by typing
  286.    cat english.au >/dev/audio
  287. The difference isn't in the pronunciation of Linux but in the language
  288. Linus uses to say hello.
  289.  
  290. For the benefit of those of you who don't have the equipment or
  291. inclination: Linus pronounces Linux approximately as Leenus, where the ee
  292. is as in feet but rather shorter and the u is like a much shorter version
  293. of the French eu sound in peur (pronouncing it as the u in put is probably
  294. passable).
  295.  
  296. When speaking English I pronounce it Lie-nucks (u as in bucket) --- this
  297. is an anglicised pronunciation based on the analogy with Linus' name,
  298. which in English is usually pronounced Lie-nus (u as in put).  It is of
  299. course quite acceptable and common to modify the pronunciation of a proper
  300. noun when it changes languages.
  301.  
  302. I think I can safely say that the pronunciation Linnucks (short i as in
  303. pit, short u as in bucket) is wrong in English, as it is not the original
  304. Swedish pronunciation, not a sensible direct anglicisation of it, and not
  305. based on the anglicised version of Linus' name.
  306.  
  307. ===============================================================================
  308.  
  309. Section 2.  Network sources and resources
  310.  
  311.  Q2.1        Where can I get the HOWTOs and other documentation ?
  312.  Q2.2        What newsgroups are there for Linux ?
  313.  Q2.3        How do I install Linux ?
  314.  Q2.4        Where can I get Linux material by FTP ?
  315.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  316.  Q2.6        I don't have Usenet access.  Where do I get information ?
  317.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  318.  Q2.8        Are the newsgroups archived anywhere ?
  319.  
  320. -------------------------------------------------------------------------------
  321.  
  322. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  323.  
  324. Look in the following places, and on sites that mirror them.
  325.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  326.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  327.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  328. For a complete list of Linux FTP sites see Q2.3 `How do I install Linux
  329. ?'.
  330.  
  331. If you don't have access to FTP try using the FTP-by-mail servers at
  332. ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  333. ftp-mailer@informatik.tu-muenchen.de.
  334.  
  335. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  336. docs/HOWTO directory at the FTP sites, but here is a (possibly incomplete)
  337. list:
  338.  
  339.           Installation HOWTO            Electronic Mail HOWTO
  340.           Linux INFO-SHEET              UUCP HOWTO
  341.           Linux META-FAQ                SCSI HOWTO
  342.           NET-2 HOWTO                   Printing HOWTO
  343.           Ethernet HOWTO                Hardware Comaptibility HOWTO
  344.           News HOWTO                    XFree86 HOWTO
  345.           Distribution HOWTO            MGR HOWTO
  346.           Ftape HOWTO                   Sound HOWTO
  347.  
  348. Some more of these documents are in preparation.  You should check in
  349. nearby directories on the FTP sites if you can't find the answer in one of
  350. the HOWTOs.
  351.  
  352. The HOWTO.INDEX also contains information on how to write a new HOWTO.
  353.  
  354. The HOWTOs are coordinated by Matt Welsh, <mdw@sunsite.unc.edu>.
  355.  
  356. The `books' produced by the Linux Documentation Project are available in
  357. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  358. to Unix and Linux.  Here is a list of those released so far:
  359.  
  360.           The Linux Documentation Project manifesto
  361.           Installation and Setup Guide for Linux
  362.           The Kernel Hacker's Guide
  363.           Network Administration Guide
  364.           Linux System Administrator's Guide
  365.  
  366. -------------------------------------------------------------------------------
  367.  
  368. Question 2.2.  What newsgroups are there for Linux ?
  369.  
  370. There are five international Usenet newsgroups devoted to Linux.
  371.  
  372. comp.os.linux.announce is the moderated announcements group; you should
  373. read this if you intend to use Linux.  Submissions for that group should
  374. be emailed to linux-announce@tc.cornell.edu.
  375.  
  376. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and
  377. comp.os.linux.misc are also worth reading -- you may find that many common
  378. problems are too recent to find in this FAQ but are answered in the
  379. newsgroups.
  380.  
  381. Remember that since Linux is a Unix clone, most all of the material in
  382. comp.unix.* and comp.windows.x.* groups will be relevant.  Apart from
  383. hardware considerations, and some obscure or very technical low-level
  384. issues, you'll find that these groups are the right place to start.
  385.  
  386. Please read Q9.1 `You still haven't answered my question !' before
  387. posting, and make sure you post to the right newsgroup.  Crossposting is
  388. rarely a good idea.
  389.  
  390. See also Q2.6 `I don't have Usenet access.  Where do I get information ?'.
  391.  
  392. Other regional and local newsgroups also exist - you may find the traffic
  393. more manageable there.  The French Linux newsgroup is fr.comp.os.linux;
  394. there is probably also a German one.  In Austrilia, try
  395. aus.computers.linux.
  396.  
  397. There may well be Linux groups local to your institution or area - check
  398. there first.
  399.  
  400. -------------------------------------------------------------------------------
  401.  
  402. Question 2.3.  How do I install Linux ?
  403.  
  404. There are several pre-packaged releases of Linux available, including the
  405. MCC-Interim release, the TAMU release and the Slackware release.  Each
  406. contains the software you need to run linux, ready to install and use.
  407. The exact details of which software is included and how to install them
  408. vary from release to release.
  409.  
  410. You should read the Installation HOWTO for more details on how to go about
  411. installing Slackware.  If you prefer a small, clean distribution to one
  412. with everything but the kitchen sink you might like to try the MCC-Interim
  413. release.
  414.  
  415. All of these releases are available via anonymous FTP from the Linux
  416. archive sites [Q2.4 `Where can I get Linux material by FTP ?'].
  417.  
  418. -------------------------------------------------------------------------------
  419.  
  420. Question 2.4.  Where can I get Linux material by FTP ?
  421.  
  422. There are three main archive sites for Linux:
  423.    ftp.funet.fi (128.214.248.6)   /pub/OS/Linux
  424.    sunsite.unc.edu (152.2.22.81)  /pub/Linux
  425.    tsx-11.mit.edu (18.172.1.2)    /pub/linux
  426. The MCC-Interim release is available from:
  427.    ftp.mcc.ac.uk (130.88.200.7)   /pub/linux
  428. The TAMU release is available from:
  429.    net.tamu.edu (128.194.177.1)   /pub/linux
  430.  
  431. The contents of these sites is mirrored (copied, usually approximately
  432. daily) by a number of other sites.  Please use one close to you -- that
  433. will be faster for you and easier on the network.
  434.    src.doc.ic.ac.uk                     wuarchive.wustl.edu
  435.                                         ftp.eecs.umich.edu
  436.    sunacm.swan.ac.uk
  437.                                         ftp.ibp.fr
  438.    ftp.informatik.tu-muenchen.de
  439.    ftp.ibr.cs.tu-bs.de                  monu1.cc.monash.edu.au
  440.    ftp.dfv.rwth-aachen.de               kuis.kyoto-u.ac.jp
  441.    ftp.informatik.rwth-aachen.de        cair.kaist.ac.kr
  442. Not all of these mirror all of the other `source' sites, and some have
  443. material not available on the `source' sites.
  444.  
  445. -------------------------------------------------------------------------------
  446.  
  447. Question 2.5.  I don't have FTP access.  Where do I get Linux ?
  448.  
  449. The easiest thing is probably to find a friend with FTP access.  If there
  450. is a Linux users group near you they may be able to help.
  451.  
  452. If you have a reasonably good email connection you could try the
  453. FTP-by-mail servers at ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  454. ftp-mailer@informatik.tu-muenchen.de.
  455.  
  456. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  457. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  458. sunsite.unc.edu, contains information on these distributions.
  459.  
  460. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  461. which is posted regularly (1st and 15th of each month) to
  462. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  463. echoes.
  464.  
  465. -------------------------------------------------------------------------------
  466.  
  467. Question 2.6.  I don't have Usenet access.  Where do I get information ?
  468.  
  469. Digests of postings to the comp.os.linux.* groups are available by
  470. subscribing to the bidirectional gateway at
  471. linux-*-request@news-digests.mit.edu, where * is one of announce,
  472. development, help, misc or admin.
  473.  
  474. You are strongly advised to subscribe to at least
  475. linux-announce-request@news-digests.mit.edu, as this carries important
  476. information and documentation about Linux.
  477.  
  478. Please remember to use the -request addresses for your subscription and
  479. unsubscription messages; mail to the other address is posted to the
  480. newsgroup !
  481.  
  482. -------------------------------------------------------------------------------
  483.  
  484. Question 2.7.  What's this mailing list thing at niksula.hut.fi ?
  485.  
  486. It's a multi-channel mailing list, mainly used by the developers of Linux
  487. to talk about technical issues and future developments.  Most of the
  488. channels are not intended for new users to ask their questions on.
  489.  
  490. The ANNOUNCE channel is a digest of postings to comp.os.linux.announce,
  491. for the benefit of those without Usenet access.  However since
  492. niksula.hut.fi is slow and overloaded I'd recommend subscribing to the MIT
  493. digestifier instead [Q2.6 `I don't have Usenet access.  Where do I get
  494. information ?'].
  495.  
  496. There is also a NEWBIE channel where `no question is too stupid';
  497. unfortunately it seems that few of the experienced users read that
  498. channel, probably because of all the `stupid' questions !
  499.  
  500. If you want to subscribe to one or more of the channels at the
  501. multi-channel list, send an empty mail message to
  502. linux-activists-request@niksula.hut.fi and you'll receive the instructions
  503. for operating the list subscription software.
  504.  
  505. If you want to unsubscribe send a mail message like this
  506.   From: you@domain.org
  507.   To: linux-activists-request@niksula.hut.fi
  508.   Subject: irrelevant
  509.  
  510.   X-Mn-Admin: leave CHANNEL
  511. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  512. message - that will cause it to be posted to the list.
  513.  
  514. Note that you *must* remember to unsubscribe *before* you change your
  515. email address, as due to a design flaw in the list server it is virtually
  516. impossible to get yourself unsubscribed after such a change.
  517.  
  518. -------------------------------------------------------------------------------
  519.  
  520. Question 2.8.  Are the newsgroups archived anywhere ?
  521.  
  522. Yes.  ftp.funet.fi and tsx-11.mit.edu contain archives of both
  523. comp.os.linux.announce and the old group comp.os.linux, in their Linux
  524. areas.  The comp.os.linux.announce archives are mirrored from /usenet on
  525. src.doc.ic.ac.uk (which also contains another archive of comp.os.linux).
  526.  
  527. ===============================================================================
  528.  
  529. Section 3.  Compatibility with other operating systems
  530.  
  531.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  532.  Q3.2        How do I access files on my DOS partition or floppy ?
  533.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  534.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  535.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  536.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  537.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  538.  Q3.8        How can I share a swap partition between Linux and OS/2 or MS Wind
  539.  
  540. -------------------------------------------------------------------------------
  541.  
  542. Question 3.1.  Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  543.  
  544. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  545. disk with other operating systems.
  546.  
  547. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  548. floppies using either the DOS filesystem type built into the kernel or
  549. mtools.  There is a DOS emulator (look on tsx-11.mit.edu in
  550. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all)
  551. DOS applications.
  552.  
  553. Linux can also access Minix filesystems.
  554.  
  555. -------------------------------------------------------------------------------
  556.  
  557. Question 3.2.  How do I access files on my DOS partition or floppy ?
  558.  
  559. Use the DOS filesystem, i.e. type, for example:
  560.         mkdir /dos
  561.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  562. If it's a floppy, don't forget to umount it before ejecting it !
  563.  
  564. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  565. options to control the automatic line-ending conversion, permissions and
  566. ownerships of the files in the DOS filesystem as they appear under Linux.
  567. If you mount your DOS filesystem by putting it in your /etc/fstab you can
  568. record the options (comma-separated) there, instead of defaults.
  569.  
  570. Alternatively you can use `mtools', available in both binary and source
  571. form on the FTP sites -- see Q2.3 `How do I install Linux ?'.
  572.  
  573. -------------------------------------------------------------------------------
  574.  
  575. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  576.  
  577. Not easily.  You can access them from within the DOS emulator [Q3.1 `Can
  578. Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?'], but not as a normal
  579. filesystem under Linux or using mtools.
  580.  
  581. -------------------------------------------------------------------------------
  582.  
  583. Question 3.4.  Can I access OS/2 HPFS partitions from Linux ?
  584.  
  585. Yes, but it's only read-only at the moment.  To use it you must compile a
  586. kernel with support for it enabled [Q6.20 `How do I upgrade/recompile my
  587. kernel ?'].  Then you can mount it using the mount command, for example:
  588.         mkdir /hpfs
  589.         mount -t hpfs /dev/hda5 /hpfs
  590.  
  591. -------------------------------------------------------------------------------
  592.  
  593. Question 3.5.  Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  594.  
  595. I'm told that there is an alpha test read-only Amiga filesystem on
  596. sunsite.unc.edu, probably in /pub/Linux/kernel/misc-patches/ffs-patch.
  597. Work may well be progressing on upgrading this to read-write for the 680x0
  598. Linux project.
  599.  
  600. There is no support for the rest of those yet; I have not heard of any
  601. recent work on providing some.
  602.  
  603. -------------------------------------------------------------------------------
  604.  
  605. Question 3.6.  Can I run Microsoft Windows programs under Linux ?
  606.  
  607. Not yet.  There is a project, known as WINE, to build an MS Windows
  608. emulator for Linux, but it is not ready for users yet.  Don't ask about it
  609. unless you think you can contribute; look out for the status reports in
  610. comp.os.linux.announce.
  611.  
  612. The advert from Softlanding (producers of SLS) stating that Linux could
  613. run MS Windows binaries was at best grossly exaggerated.  I'm told that
  614. you can run Windoze 3.0 in real mode in a dosemu [Q3.1 `Can Linux coexist
  615. with DOS ?  OS/2 ?  386BSD ?  Minix ?'].
  616.  
  617. In the meantime if you need to run MS Windows programs your best bet is
  618. probably to reboot when you want to switch environments.  LILO (the Linux
  619. bootloader) has the facility for a boot menu --- see its documentation for
  620. more details.
  621.  
  622. -------------------------------------------------------------------------------
  623.  
  624. Question 3.7.  How can I boot Linux from OS/2's Boot Manager ?
  625.  
  626. 1. Create a partition using OS/2's FDISK (Not Linux's fdisk).
  627.  
  628. 2. Format the partition under OS/2, either with FAT or HPFS.  This is so
  629. that OS/2 knows about the partition being formatted.
  630.  
  631. 3. Add the partition to the Boot Manager.
  632.  
  633. 4. Boot Linux, and create a filesystem on the partition using mkfs -t ext2
  634. or mke2fs.  At this point you may, if you like, use Linux's fdisk to
  635. change the partition type code of the new partition to type 83 (Linux
  636. Native) -- this may help some automated installation scripts find the
  637. right partition to use.
  638.  
  639. 5. Install Linux on the partition.
  640.  
  641. 6. Install LILO on the Linux partition -- NOT on the master boot record of
  642. the hard drive.  This installs LILO as a second-stage boot loader on the
  643. Linux partition itself, to start up the kernel specified in the LILO
  644. config file.  To do this you should put
  645.    boot = /dev/hda2
  646. (where /dev/hda2 is the *partition* you want to boot off) in your
  647. /etc/lilo/config or /etc/lilo.config file.
  648.  
  649. 7. Make sure that it is the Boot Manager partition that is marked active,
  650. so that you can use Boot Manager to choose what to boot.
  651.  
  652. -------------------------------------------------------------------------------
  653.  
  654. Question 3.8.  How can I share a swap partition between Linux and OS/2 or MS Windows ?
  655.  
  656. See the Mini-HOWTO on the subject by H. Peter Anvin, <hpa@eecs.nwu.edu>.
  657. It is available on sunsite.unc.edu in /pub/Linux/docs.
  658.  
  659. ===============================================================================
  660.  
  661. Section 4.  Linux's handling of filesystems, disks and drives
  662.  
  663.  Q4.1        How can I undelete files ?
  664.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  665.  Q4.3        How do I format and create a filesystem on a floppy ?
  666.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  667.  Q4.5        My swap area isn't working.
  668.  Q4.6        How can I have more than 16Mb of swap ?
  669.  Q4.7        How do I remove LILO so my system boots DOS again ?
  670.  Q4.8        Why can't I use fdformat except as root ?
  671.  Q4.9        Is there something like Stacker or Doublespace for Linux ?
  672.  
  673. -------------------------------------------------------------------------------
  674.  
  675. Question 4.1.  How can I undelete files ?
  676.  
  677. In general, this is very hard to do on Unices.  Undelete functionality for
  678. the ext2fs is being worked on, but don't hold your breath.
  679.  
  680. In the meantime you can search the raw disk device which holds the
  681. filesystem in question.  The strings command may help you do this, if the
  682. file you've lost was a text file: for example strings /dev/hdb3.  You will
  683. need to be root to do this, and you should take care to put the output
  684. file on a different filesystem, of course ! The output will be large and
  685. full of extra unwanted crud, so make sure you have enough space.
  686.  
  687. -------------------------------------------------------------------------------
  688.  
  689. Question 4.2.  Is there a defragmenter for ext2fs etc. ?
  690.  
  691. You can probably do without, since the ext2 filesystem code tries to
  692. reduce fragmentation as it goes, during normal operation.
  693.  
  694. If you really need to defragment a filesystem you could back it up,
  695. reinitialise the partition using mkfs -t ext2 and restore it.
  696.  
  697. I'm told that a defragmenter for Minix and old-style `ext' filesystems is
  698. available on sunsite.unc.edu in system/Filesystems/defrag-0.4.tar.z.
  699.  
  700. -------------------------------------------------------------------------------
  701.  
  702. Question 4.3.  How do I format and create a filesystem on a floppy ?
  703.  
  704. For a 3.5 inch high density floppy:
  705.    fdformat /dev/fd0H1440
  706.    mkfs -t ext2 /dev/fd0H1440 1440
  707. For a 5.25 floppy inch use fd0h1200 and 1200 as appropriate.  For the `B'
  708. drive use fd1 instead of fd0.  Full details of which floppy devices do
  709. what can be found in the Linux Device List [Q2.1 `Where can I get the
  710. HOWTOs and other documentation ?'].  If you don't have the fsutils package
  711. you'll have to run mke2fs instead of mkfs -t ext2.
  712.  
  713. The first command low-level formats the floppy; the second creates an
  714. empty filesystem on it.  After doing this you can mount the floppy like a
  715. hard disk partition and simply cp and mv files, etc.
  716.  
  717. -------------------------------------------------------------------------------
  718.  
  719. Question 4.4.  I get nasty messages about inodes, blocks, and the suchlike
  720.  
  721. You probably have a corrupted filesystem, probably caused by not shutting
  722. Linux down properly before turning off the power or resetting.  You need
  723. to use a recent shutdown program to do this --- for example, the one
  724. included in the bootutils package, available on sunsite and tsx-11.
  725.  
  726. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  727. don't have the fsutils package) will be able to repair your filesystem; if
  728. you're unlucky the filesystem is trashed and you'll have to reinitialise
  729. it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup.
  730.  
  731. NB don't try to check a filesystem that's mounted read-write - this
  732. includes the root partition if you don't see
  733.    VFS: mounted root ... read-only
  734. at boot time.
  735.  
  736. -------------------------------------------------------------------------------
  737.  
  738. Question 4.5.  My swap area isn't working.
  739.  
  740. When you boot (or enable swapping manually) you should see
  741.         Adding Swap: NNNNk swap-space
  742.  
  743. If you don't see any messages at all you are probably missing swapon -av
  744. (the command to enable swapping) in your /etc/rc or /etc/rc.local (the
  745. system startup scripts), or have forgotten to make the right entry in
  746. /etc/fstab:
  747.         /dev/hda2       none       swap       sw
  748. for example.
  749.  
  750. If you see
  751.         Unable to find swap-space signature
  752. you have forgotten to run mkswap.  See the manpage for details; it works
  753. much like mkfs.
  754.  
  755. Check the Installation HOWTO for detailed instructions of how to set up a
  756. swap area.
  757.  
  758. -------------------------------------------------------------------------------
  759.  
  760. Question 4.6.  How can I have more than 16Mb of swap ?
  761.  
  762. Use a recent kernel -- from at least 0.99.14 Linux can use swap partitions
  763. of up to 128Mb.
  764.  
  765. If you use an older kernel which only supports swap area sizes up to 16Mb
  766. you have to set up more than one swap partition or swapfile.
  767.  
  768. -------------------------------------------------------------------------------
  769.  
  770. Question 4.7.  How do I remove LILO so my system boots DOS again ?
  771.  
  772. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR.  This will
  773. restore a standard MS-DOS Master Boot Record.  If you have DR-DOS 6.0, go
  774. into FDISK in the normal way and then select the `Re-write Master Boot
  775. Record' option.
  776.  
  777. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  778. LILO saved when you first installed it.  You did keep that file, didn't
  779. you ?  It's probably called boot.0301 or some such.  Type
  780.         dd if=boot.0301 of=/dev/hda bs=445 count=1
  781. (or sda if you're using a SCSI disk).  This may also wipe out your
  782. partition table, so beware !
  783.  
  784. Note that the DOS MBR boots whichever (single!) partition is flagged as
  785. `active'; you may need to use fdisk to set and clear the active flags on
  786. partitions appropriately.
  787.  
  788. -------------------------------------------------------------------------------
  789.  
  790. Question 4.8.  Why can't I use fdformat except as root ?
  791.  
  792. The system call to format a floppy may only be done as root, regardless of
  793. the permissions of /dev/fd0*.  If you want any user to be able to format a
  794. floppy try getting the fdformat2 program; this works around the problems
  795. by being setuid to root.
  796.  
  797. -------------------------------------------------------------------------------
  798.  
  799. Question 4.9.  Is there something like Stacker or Doublespace for Linux ?
  800.  
  801. Currently none of the Linux filesystems can do compression in the
  802. filesystem.
  803.  
  804. There is a transparently uncompressing C library, which is a drop-in
  805. replacement for the standard C library.  It allows programs to read
  806. compressed (ie, GNU zipped) files as if they were not compressed.  You
  807. install it, and then you can compress files using gzip and have programs
  808. still find them.  Look on sunsite.unc.edu in /pub/Linux/libs.  The author
  809. is Alain Knaff <Alain.Knaff@imag.fr>.
  810.  
  811. There is a compressing block device driver that can provide
  812. filesystem-independant on the fly disk compression in the kernel.  It is
  813. called `DouBle'.  There is a source only distribution on sunsite.unc.edu
  814. in /pub/Linux/utils/compress; the auther is Jean-Marc Verbavatz
  815. <jmv@receptor.mgh.harvard.edu>.
  816.  
  817. There is also a package available called tcx (Transparently Compressed
  818. Executables) which allows you to keep infrequently used executables
  819. compressed and only uncompress them temporarily while you use them.
  820. You'll find it on the Linux FTP sites [Q2.4 `Where can I get Linux
  821. material by FTP ?']; it was also announced in comp.os.linux.announce.
  822. Note - this is not the same as gzexe, which is an inferior implementation
  823. of the same concept.
  824.  
  825. ===============================================================================
  826.  
  827. Section 5.  Porting, compiling and obtaining programs
  828.  
  829.  Q5.1        What is ld.so and where do I get it ?
  830.  Q5.2        During linking I get Undefined symbol _mcount
  831.  Q5.3        Has anyone ported / compiled / written XXX for Linux ?
  832.  Q5.4        How do I port XXX to Linux ?
  833.  Q5.5        Can I use code or a compiler compiled for a 486 on my 386 ?
  834.  Q5.6        GCC sometimes uses huge amounts of virtual memory and thrashes
  835.  Q5.7        What does gcc -O6 do ?
  836.  Q5.8        Where are <linux/*.h> and <asm/*.h> ?
  837.  Q5.9        I get errors when I try to compile the kernel.
  838.  Q5.10       My ext2fs partitions are checked each time I reboot.
  839.  Q5.11       I have a huge /proc/kcore !  Can I delete it ?
  840.  
  841. -------------------------------------------------------------------------------
  842.  
  843. Question 5.1.  What is ld.so and where do I get it ?
  844.  
  845. ld.so is the new dynamic library loader.  Each binary using shared
  846. libraries used to have about 3K of start-up code to find and load the
  847. shared libraries.  Now that code has been put in a special shared library,
  848. /lib/ld.so, where all binaries can look for it, so that it wastes less
  849. disk space, and can be upgraded more easily.
  850.  
  851. It can be obtained from tsx-11.mit.edu in /pub/linux/packages/GCC and
  852. mirror sites thereof.  The latest version at the time of writing is
  853. ld.so.1.4.tar.gz.
  854.  
  855. -------------------------------------------------------------------------------
  856.  
  857. Question 5.2.  During linking I get Undefined symbol _mcount
  858.  
  859. This is usually due to a bad interaction between a brokenness in SLS and
  860. the C library release notes.  Your libc.a has been replaced by the
  861. profiling library.  You should remove libc.a, libg.a and libc_p.a and once
  862. again install the new libraries (following the release notes, of course).
  863.  
  864. -------------------------------------------------------------------------------
  865.  
  866. Question 5.3.  Has anyone ported / compiled / written XXX for Linux ?
  867.  
  868. First, look in the Linux Software Map (LSM) --- it's in the docs directory
  869. on sunsite.unc.edu, and on the other FTP sties.
  870.  
  871. Check the FTP sites (see Q2.1 `Where can I get the HOWTOs and other
  872. documentation ?') first --- search the find-ls or INDEX files for
  873. appropriate strings.
  874.  
  875. If you don't find anything, you could either download the sources to the
  876. program yourself and compile them -- see Q5.4 `How do I port XXX to Linux
  877. ?' -- or, if it's a large package which may require some porting, post a
  878. message to the newsgroup.
  879.  
  880. If you compile a largeish program please upload it to one or more of the
  881. FTP sites and post a message to comp.os.linux.announce (submit your
  882. posting to linux-announce@tc.cornell.edu).
  883.  
  884. If you're looking for an application-type program the chances are someone
  885. has already written a free verson.  Try reading the FAQ in
  886. comp.sources.wanted for instructions on how to find sources.
  887.  
  888. -------------------------------------------------------------------------------
  889.  
  890. Question 5.4.  How do I port XXX to Linux ?
  891.  
  892. In general Unix programs need very little porting.  Simply follow the
  893. installation instructions.  If you don't know and don't know how to find
  894. out the answers to some of the questions asked during or by the
  895. installation procedure you can guess, but this tends to produce buggy
  896. programs.  In this case you're probably better off asking someone else to
  897. do the port.
  898.  
  899. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  900. -lbsd on the appropriate parts of the compilation lines.
  901.  
  902. -------------------------------------------------------------------------------
  903.  
  904. Question 5.5.  Can I use code or a compiler compiled for a 486 on my 386 ?
  905.  
  906. Yes.
  907.  
  908. The -m486 option to GCC, which is used to compile binaries for 486
  909. machines, merely makes GCC change certain optimisations.  This makes for
  910. slightly larger binaries which run somewhat faster on a 486.  They still
  911. work fine on a 386, though, with little performance hit.
  912.  
  913. GCC can be configured for a 386 or 486; the only difference is that
  914. configuring it for a 386 makes -m386 the default and configuring for a 486
  915. makes -m486 the default; in either case these can be overriden on a
  916. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  917.  
  918. -------------------------------------------------------------------------------
  919.  
  920. Question 5.6.  GCC sometimes uses huge amounts of virtual memory and thrashes
  921.  
  922. Older versions of GCC had a bug which makes it use lots of memory if you
  923. try to compile a program which has a large static data table in it.
  924.  
  925. You can either upgrade your version of GCC, or add more swap if necessary
  926. and just grin and bear it; it'll work in the end.
  927.  
  928. -------------------------------------------------------------------------------
  929.  
  930. Question 5.7.  What does gcc -O6 do ?
  931.  
  932. The same as -O2; any number greater than 2 currently works just like 2.
  933. The Makefiles of newer kernel use -O2, and so should you.
  934.  
  935. -------------------------------------------------------------------------------
  936.  
  937. Question 5.8.  Where are <linux/*.h> and <asm/*.h> ?
  938.  
  939. These are in the directories /usr/include/linux and /usr/include/asm.
  940.  
  941. However they should be symbolic links to your kernel sources in
  942. /usr/src/linux and not real directories.
  943.  
  944. If you don't have the kernel sources download them --- see Q6.20 `How do I
  945. upgrade/recompile my kernel ?'.
  946.  
  947. Then use rm to remove any garbage, and ln to create the links:
  948.    rm -rf /usr/include/linux /usr/include/asm
  949.    ln -sf /usr/src/linux/include/linux /usr/include/linux
  950.    ln -sf /usr/src/linux/include/asm /usr/include/asm
  951.  
  952. -------------------------------------------------------------------------------
  953.  
  954. Question 5.9.  I get errors when I try to compile the kernel.
  955.  
  956. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  957. directories but instead symbolic links to /usr/src/linux/include/linux and
  958. /usr/src/linux/include/asm respectively.
  959.  
  960. If necessary, delete them using rm and then use ln -s to make the links as
  961. in Q5.8 `Where are <linux/*.h> and <asm/*.h> ?'.
  962.  
  963. -------------------------------------------------------------------------------
  964.  
  965. Question 5.10.  My ext2fs partitions are checked each time I reboot.
  966.  
  967. See Q7.11 `EXT2-fs: warning: mounting unchecked filesystem'.
  968.  
  969. -------------------------------------------------------------------------------
  970.  
  971. Question 5.11.  I have a huge /proc/kcore !  Can I delete it ?
  972.  
  973. None of the files in /proc are really there - they're all "pretend" files
  974. made up by the kernel, to give you information about the system, and don't
  975. take up any hard disk space.
  976.  
  977. /proc/kcore is like an "alias" for the memory in your computer; its size
  978. is the same as the amount of RAM you have, and if you ask to read it as a
  979. file the kernel does memory reads.
  980.  
  981. ===============================================================================
  982.  
  983. The remainder of the FAQ is in the next part ...
  984.  
  985. -- 
  986. Ian Jackson, at home  <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  987. PGP2 public key available on server.  Urgent email: <iwj10@phx.cam.ac.uk>
  988. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 64238
  989.  
  990.